﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Deparment_Mother_MasterPageShow : System.Web.UI.MasterPage
{
    public string _SCSort = "0";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Account"] != null)
        {
            HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
            if ((Request.UserHostAddress == "125.46.74.27") || (Request.UserHostAddress == "125.46.74.28") || (Request.UserHostAddress == "125.46.74.26"))
            {
            }
            else
            {
                //Response.Write("<script>alert('请在内部网络使用!');location.href='../HomePage/Default.aspx';</script>");
                //Response.Write("<script>alert('请在内部网络使用！');</script>");
                //Response.Redirect("../../HomePage/Default.aspx");
            }
            _SCSort = _Account.AC_SORT.ToString();
            HZ.MBSM.DAL.AccountType _AccountType = (HZ.MBSM.DAL.AccountType)SysFun.ToInt(_Account.Type);

        }
        else
        {
            Response.Redirect("../../HomePage/Default.aspx");
        }
    }  
    

 
}
